unit scRespEdit;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Mask, DBCtrls, sDBEdit, DB, ExtCtrls, sBevel, Buttons,
  sBitBtn;

type
  TfmRespEdit = class(TForm)
    sbtbtnOk: TsBitBtn;
    sbtbtnCacel: TsBitBtn;
    sbvl1: TsBevel;
    dsResp: TDataSource;
    edtlname: TsDBEdit;
    edtfname: TsDBEdit;
    edtmname: TsDBEdit;
    edtPhone: TsDBEdit;
    edtNote: TsDBEdit;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

implementation

uses dbMyUtils;

{$R *.dfm}

procedure TfmRespEdit.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  if Self.ModalResult = mrOK  then
  try
    PostChanges(dsResp.DataSet);
  except
    Action := caNone;
  end;
end;

end.
